<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AIfES 2: ailayer_maxpool2d_default.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="AIfES_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AIfES 2
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('ailayer__maxpool2d__default_8h.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ailayer_maxpool2d_default.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Default implementation of the <a class="el" href="ailayer__maxpool2d_8h.html">MaxPool2D layer </a>.  
<a href="#details">More...</a></p>

<p><a href="ailayer__maxpool2d__default_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:adc594f14828e8c1d901cd0251df3a1a1"><td class="memItemLeft" align="right" valign="top"><a id="adc594f14828e8c1d901cd0251df3a1a1"></a>
typedef struct <a class="el" href="structailayer__maxpool2d.html">ailayer_maxpool2d</a>&#160;</td><td class="memItemRight" valign="bottom"><b>ailayer_maxpool2d_f32_t</b></td></tr>
<tr class="separator:adc594f14828e8c1d901cd0251df3a1a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a0d91a429f97af0ab05e308348824c7bd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ailayer__maxpool2d__default_8h.html#a0d91a429f97af0ab05e308348824c7bd">ailayer_maxpool2d_f32_default</a> (<a class="el" href="structailayer__maxpool2d.html">ailayer_maxpool2d_f32_t</a> *layer, <a class="el" href="structailayer.html">ailayer_t</a> *input_layer)</td></tr>
<tr class="memdesc:a0d91a429f97af0ab05e308348824c7bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes and connect a <a class="el" href="ailayer__conv2d_8h.html">Conv2D layer </a> with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation.  <a href="ailayer__maxpool2d__default_8h.html#a0d91a429f97af0ab05e308348824c7bd">More...</a><br /></td></tr>
<tr class="separator:a0d91a429f97af0ab05e308348824c7bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63d08cf1298ec2f3ec9b5407d38860cd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ailayer__maxpool2d__default_8h.html#a63d08cf1298ec2f3ec9b5407d38860cd">ailayer_maxpool2d_cfirst_f32_default</a> (<a class="el" href="structailayer__maxpool2d.html">ailayer_maxpool2d_f32_t</a> *layer, <a class="el" href="structailayer.html">ailayer_t</a> *input_layer)</td></tr>
<tr class="memdesc:a63d08cf1298ec2f3ec9b5407d38860cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes and connect a <a class="el" href="ailayer__maxpool2d_8h.html">MaxPool2D layer </a> (channels first) with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation.  <a href="ailayer__maxpool2d__default_8h.html#a63d08cf1298ec2f3ec9b5407d38860cd">More...</a><br /></td></tr>
<tr class="separator:a63d08cf1298ec2f3ec9b5407d38860cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c7da88acbb33efb417ee8e9172ec861"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ailayer__maxpool2d__default_8h.html#a4c7da88acbb33efb417ee8e9172ec861">ailayer_maxpool2d_chw_f32_default</a> (<a class="el" href="structailayer__maxpool2d.html">ailayer_maxpool2d_f32_t</a> *layer, <a class="el" href="structailayer.html">ailayer_t</a> *input_layer)</td></tr>
<tr class="memdesc:a4c7da88acbb33efb417ee8e9172ec861"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes and connect a <a class="el" href="ailayer__maxpool2d_8h.html">MaxPool2D layer </a> (channels first) with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation.  <a href="ailayer__maxpool2d__default_8h.html#a4c7da88acbb33efb417ee8e9172ec861">More...</a><br /></td></tr>
<tr class="separator:a4c7da88acbb33efb417ee8e9172ec861"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada7845f62ee1ea1c8ba2f66cd6495877"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ailayer__maxpool2d__default_8h.html#ada7845f62ee1ea1c8ba2f66cd6495877">ailayer_maxpool2d_clast_f32_default</a> (<a class="el" href="structailayer__maxpool2d.html">ailayer_maxpool2d_f32_t</a> *layer, <a class="el" href="structailayer.html">ailayer_t</a> *input_layer)</td></tr>
<tr class="memdesc:ada7845f62ee1ea1c8ba2f66cd6495877"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes and connect a <a class="el" href="ailayer__maxpool2d_8h.html">MaxPool2D layer </a> (channels last) with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation.  <a href="ailayer__maxpool2d__default_8h.html#ada7845f62ee1ea1c8ba2f66cd6495877">More...</a><br /></td></tr>
<tr class="separator:ada7845f62ee1ea1c8ba2f66cd6495877"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76cfe741ac9237449ef683867fe5c6e5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ailayer__maxpool2d__default_8h.html#a76cfe741ac9237449ef683867fe5c6e5">ailayer_maxpool2d_hwc_f32_default</a> (<a class="el" href="structailayer__maxpool2d.html">ailayer_maxpool2d_f32_t</a> *layer, <a class="el" href="structailayer.html">ailayer_t</a> *input_layer)</td></tr>
<tr class="memdesc:a76cfe741ac9237449ef683867fe5c6e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes and connect a <a class="el" href="ailayer__maxpool2d_8h.html">MaxPool2D layer </a> (channels last) with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation.  <a href="ailayer__maxpool2d__default_8h.html#a76cfe741ac9237449ef683867fe5c6e5">More...</a><br /></td></tr>
<tr class="separator:a76cfe741ac9237449ef683867fe5c6e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Default implementation of the <a class="el" href="ailayer__maxpool2d_8h.html">MaxPool2D layer </a>. </p>
<dl class="section version"><dt>Version</dt><dd>2.2.0 </dd></dl>
<dl class="section date"><dt>Date</dt><dd>18.10.2021 </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2020-2023 Fraunhofer Institute for Microelectronic Circuits and Systems. All rights reserved.<br  />
<br  />
 AIfES is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br  />
<br  />
 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.<br  />
<br  />
 You should have received a copy of the GNU Affero General Public License along with this program. If not, see <a href="https://www.gnu.org/licenses/">https://www.gnu.org/licenses/</a>.</dd></dl>
<p>Hardware independent implementations of the MaxPool2D layer in <a class="el" href="aimath__f32_8h.html">F32 </a> data-type. For more information about the MaxPool2D layer refer to <a class="el" href="ailayer__maxpool2d_8h.html" title="Base layer  implementation of the MaxPool2D layer.">ailayer_maxpool2d.h</a>. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a63d08cf1298ec2f3ec9b5407d38860cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63d08cf1298ec2f3ec9b5407d38860cd">&#9670;&nbsp;</a></span>ailayer_maxpool2d_cfirst_f32_default()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structailayer.html">ailayer_t</a>* ailayer_maxpool2d_cfirst_f32_default </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structailayer__maxpool2d.html">ailayer_maxpool2d_f32_t</a> *&#160;</td>
          <td class="paramname"><em>layer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td>
          <td class="paramname"><em>input_layer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes and connect a <a class="el" href="ailayer__maxpool2d_8h.html">MaxPool2D layer </a> (channels first) with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation. </p>
<p>Code examples are given in the description of <a class="el" href="ailayer__maxpool2d__default_8h.html#a0d91a429f97af0ab05e308348824c7bd" title="Initializes and connect a Conv2D layer  with the F32  default implementation.">ailayer_maxpool2d_f32_default()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*layer</td><td>The layer structure to initialize. </td></tr>
    <tr><td class="paramname">*input_layer</td><td>The prior layer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The (successfully) initialized layer structure. </dd></dl>

</div>
</div>
<a id="a4c7da88acbb33efb417ee8e9172ec861"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c7da88acbb33efb417ee8e9172ec861">&#9670;&nbsp;</a></span>ailayer_maxpool2d_chw_f32_default()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structailayer.html">ailayer_t</a>* ailayer_maxpool2d_chw_f32_default </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structailayer__maxpool2d.html">ailayer_maxpool2d_f32_t</a> *&#160;</td>
          <td class="paramname"><em>layer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td>
          <td class="paramname"><em>input_layer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes and connect a <a class="el" href="ailayer__maxpool2d_8h.html">MaxPool2D layer </a> (channels first) with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation. </p>
<p>Code examples are given in the description of <a class="el" href="ailayer__maxpool2d__default_8h.html#a0d91a429f97af0ab05e308348824c7bd" title="Initializes and connect a Conv2D layer  with the F32  default implementation.">ailayer_maxpool2d_f32_default()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*layer</td><td>The layer structure to initialize. </td></tr>
    <tr><td class="paramname">*input_layer</td><td>The prior layer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The (successfully) initialized layer structure. </dd></dl>

</div>
</div>
<a id="ada7845f62ee1ea1c8ba2f66cd6495877"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada7845f62ee1ea1c8ba2f66cd6495877">&#9670;&nbsp;</a></span>ailayer_maxpool2d_clast_f32_default()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structailayer.html">ailayer_t</a>* ailayer_maxpool2d_clast_f32_default </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structailayer__maxpool2d.html">ailayer_maxpool2d_f32_t</a> *&#160;</td>
          <td class="paramname"><em>layer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td>
          <td class="paramname"><em>input_layer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes and connect a <a class="el" href="ailayer__maxpool2d_8h.html">MaxPool2D layer </a> (channels last) with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation. </p>
<p>Code examples are given in the description of <a class="el" href="ailayer__maxpool2d__default_8h.html#a0d91a429f97af0ab05e308348824c7bd" title="Initializes and connect a Conv2D layer  with the F32  default implementation.">ailayer_maxpool2d_f32_default()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*layer</td><td>The layer structure to initialize. </td></tr>
    <tr><td class="paramname">*input_layer</td><td>The prior layer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The (successfully) initialized layer structure. </dd></dl>

</div>
</div>
<a id="a0d91a429f97af0ab05e308348824c7bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d91a429f97af0ab05e308348824c7bd">&#9670;&nbsp;</a></span>ailayer_maxpool2d_f32_default()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structailayer.html">ailayer_t</a>* ailayer_maxpool2d_f32_default </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structailayer__maxpool2d.html">ailayer_maxpool2d_f32_t</a> *&#160;</td>
          <td class="paramname"><em>layer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td>
          <td class="paramname"><em>input_layer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes and connect a <a class="el" href="ailayer__conv2d_8h.html">Conv2D layer </a> with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation. </p>
<p><b>Example:</b> Create the layer structure:<br  />
In C: </p><div class="fragment"><div class="line"><a class="code" href="structailayer__maxpool2d.html">ailayer_maxpool2d_f32_t</a> maxpool2d_layer = {</div>
<div class="line">    .<a class="code" href="structailayer__maxpool2d.html#ad05b3ff44540cdb867f4ba378e6946ac">pool_size</a> =    {2, 2},</div>
<div class="line">    .stride =       {2, 2},</div>
<div class="line">    .padding =      {0, 0}</div>
<div class="line">};</div>
<div class="ttc" id="astructailayer__maxpool2d_html"><div class="ttname"><a href="structailayer__maxpool2d.html">ailayer_maxpool2d</a></div><div class="ttdoc">General layer  structure.</div><div class="ttdef"><b>Definition:</b> ailayer_maxpool2d.h:51</div></div>
<div class="ttc" id="astructailayer__maxpool2d_html_ad05b3ff44540cdb867f4ba378e6946ac"><div class="ttname"><a href="structailayer__maxpool2d.html#ad05b3ff44540cdb867f4ba378e6946ac">ailayer_maxpool2d::pool_size</a></div><div class="ttdeci">uint16_t pool_size[2]</div><div class="ttdoc">Size of the pooling kernel ( ).</div><div class="ttdef"><b>Definition:</b> ailayer_maxpool2d.h:61</div></div>
</div><!-- fragment --><p> In C, C++ and on Arduino: </p><div class="fragment"><div class="line"><a class="code" href="structailayer__maxpool2d.html">ailayer_maxpool2d_t</a> maxpool2d_layer = AILAYER_CONV2D_F32_A(</div>
<div class="line">                                                            <span class="comment">/* pool_size =*/</span>    HW(2, 2),</div>
<div class="line">                                                            <span class="comment">/* stride =*/</span>       HW(2, 2),</div>
<div class="line">                                                            <span class="comment">/* padding =*/</span>      HW(0, 0)</div>
<div class="line">                                                           );</div>
</div><!-- fragment --><p><b>Example:</b> Initialize and connect the layer for data with channels first (all options are equivalent):<br  />
</p><div class="fragment"><div class="line">maxpool2d_layer.<a class="code" href="structailayer__maxpool2d.html#afcee94774a3c5f173a071b67da9cc3a5">channel_axis</a> = 1;</div>
<div class="line">x = <a class="code" href="ailayer__maxpool2d__default_8h.html#a0d91a429f97af0ab05e308348824c7bd">ailayer_maxpool2d_f32_default</a>(&amp;maxpool2d_layer, x);</div>
<div class="ttc" id="aailayer__maxpool2d__default_8h_html_a0d91a429f97af0ab05e308348824c7bd"><div class="ttname"><a href="ailayer__maxpool2d__default_8h.html#a0d91a429f97af0ab05e308348824c7bd">ailayer_maxpool2d_f32_default</a></div><div class="ttdeci">ailayer_t * ailayer_maxpool2d_f32_default(ailayer_maxpool2d_f32_t *layer, ailayer_t *input_layer)</div><div class="ttdoc">Initializes and connect a Conv2D layer  with the F32  default implementation.</div></div>
<div class="ttc" id="astructailayer__maxpool2d_html_afcee94774a3c5f173a071b67da9cc3a5"><div class="ttname"><a href="structailayer__maxpool2d.html#afcee94774a3c5f173a071b67da9cc3a5">ailayer_maxpool2d::channel_axis</a></div><div class="ttdeci">int8_t channel_axis</div><div class="ttdoc">Index of the channel axis (1 for channels first and -1 or 3 for channels last).</div><div class="ttdef"><b>Definition:</b> ailayer_maxpool2d.h:65</div></div>
</div><!-- fragment --><p> or </p><div class="fragment"><div class="line">x = <a class="code" href="ailayer__maxpool2d__default_8h.html#a63d08cf1298ec2f3ec9b5407d38860cd">ailayer_maxpool2d_cfirst_f32_default</a>(&amp;maxpool2d_layer, x);</div>
<div class="ttc" id="aailayer__maxpool2d__default_8h_html_a63d08cf1298ec2f3ec9b5407d38860cd"><div class="ttname"><a href="ailayer__maxpool2d__default_8h.html#a63d08cf1298ec2f3ec9b5407d38860cd">ailayer_maxpool2d_cfirst_f32_default</a></div><div class="ttdeci">ailayer_t * ailayer_maxpool2d_cfirst_f32_default(ailayer_maxpool2d_f32_t *layer, ailayer_t *input_layer)</div><div class="ttdoc">Initializes and connect a MaxPool2D layer  (channels first) with the F32  default implementation.</div></div>
</div><!-- fragment --><p> or </p><div class="fragment"><div class="line">x = <a class="code" href="ailayer__maxpool2d__default_8h.html#a4c7da88acbb33efb417ee8e9172ec861">ailayer_maxpool2d_chw_f32_default</a>(&amp;maxpool2d_layer, x);</div>
<div class="ttc" id="aailayer__maxpool2d__default_8h_html_a4c7da88acbb33efb417ee8e9172ec861"><div class="ttname"><a href="ailayer__maxpool2d__default_8h.html#a4c7da88acbb33efb417ee8e9172ec861">ailayer_maxpool2d_chw_f32_default</a></div><div class="ttdeci">ailayer_t * ailayer_maxpool2d_chw_f32_default(ailayer_maxpool2d_f32_t *layer, ailayer_t *input_layer)</div><div class="ttdoc">Initializes and connect a MaxPool2D layer  (channels first) with the F32  default implementation.</div></div>
</div><!-- fragment --><p><b>Example:</b> Initialize and connect the layer for data with channels last (all options are equivalent):<br  />
</p><div class="fragment"><div class="line">maxpool2d_layer.<a class="code" href="structailayer__maxpool2d.html#afcee94774a3c5f173a071b67da9cc3a5">channel_axis</a> = -1;</div>
<div class="line">x = <a class="code" href="ailayer__maxpool2d__default_8h.html#a0d91a429f97af0ab05e308348824c7bd">ailayer_maxpool2d_f32_default</a>(&amp;maxpool2d_layer, x);</div>
</div><!-- fragment --><p> or </p><div class="fragment"><div class="line">x = <a class="code" href="ailayer__maxpool2d__default_8h.html#ada7845f62ee1ea1c8ba2f66cd6495877">ailayer_maxpool2d_clast_f32_default</a>(&amp;maxpool2d_layer, x);</div>
<div class="ttc" id="aailayer__maxpool2d__default_8h_html_ada7845f62ee1ea1c8ba2f66cd6495877"><div class="ttname"><a href="ailayer__maxpool2d__default_8h.html#ada7845f62ee1ea1c8ba2f66cd6495877">ailayer_maxpool2d_clast_f32_default</a></div><div class="ttdeci">ailayer_t * ailayer_maxpool2d_clast_f32_default(ailayer_maxpool2d_f32_t *layer, ailayer_t *input_layer)</div><div class="ttdoc">Initializes and connect a MaxPool2D layer  (channels last) with the F32  default implementation.</div></div>
</div><!-- fragment --><p> or </p><div class="fragment"><div class="line">x = <a class="code" href="ailayer__maxpool2d__default_8h.html#a76cfe741ac9237449ef683867fe5c6e5">ailayer_maxpool2d_hwc_f32_default</a>(&amp;maxpool2d_layer, x);</div>
<div class="ttc" id="aailayer__maxpool2d__default_8h_html_a76cfe741ac9237449ef683867fe5c6e5"><div class="ttname"><a href="ailayer__maxpool2d__default_8h.html#a76cfe741ac9237449ef683867fe5c6e5">ailayer_maxpool2d_hwc_f32_default</a></div><div class="ttdeci">ailayer_t * ailayer_maxpool2d_hwc_f32_default(ailayer_maxpool2d_f32_t *layer, ailayer_t *input_layer)</div><div class="ttdoc">Initializes and connect a MaxPool2D layer  (channels last) with the F32  default implementation.</div></div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*layer</td><td>The layer structure to initialize. </td></tr>
    <tr><td class="paramname">*input_layer</td><td>The prior layer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The (successfully) initialized layer structure. </dd></dl>

</div>
</div>
<a id="a76cfe741ac9237449ef683867fe5c6e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76cfe741ac9237449ef683867fe5c6e5">&#9670;&nbsp;</a></span>ailayer_maxpool2d_hwc_f32_default()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structailayer.html">ailayer_t</a>* ailayer_maxpool2d_hwc_f32_default </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structailayer__maxpool2d.html">ailayer_maxpool2d_f32_t</a> *&#160;</td>
          <td class="paramname"><em>layer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structailayer.html">ailayer_t</a> *&#160;</td>
          <td class="paramname"><em>input_layer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes and connect a <a class="el" href="ailayer__maxpool2d_8h.html">MaxPool2D layer </a> (channels last) with the <a class="el" href="aimath__f32_8h.html">F32 </a> default implementation. </p>
<p>Code examples are given in the description of <a class="el" href="ailayer__maxpool2d__default_8h.html#a0d91a429f97af0ab05e308348824c7bd" title="Initializes and connect a Conv2D layer  with the F32  default implementation.">ailayer_maxpool2d_f32_default()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">*layer</td><td>The layer structure to initialize. </td></tr>
    <tr><td class="paramname">*input_layer</td><td>The prior layer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The (successfully) initialized layer structure. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_5233a5861230ad4bc52bfd822c86fe04.html">cnn</a></li><li class="navelem"><a class="el" href="dir_af585f9a5a89e54017897db60f1719d0.html">default</a></li><li class="navelem"><a class="el" href="dir_f6a4d4132c61374db307664f3842a649.html">ailayer</a></li><li class="navelem"><a class="el" href="ailayer__maxpool2d__default_8h.html">ailayer_maxpool2d_default.h</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
